package org.darkforest.dao.redis.impl;

import org.darkforest.dao.redis.AlbumClassRedisDao;
import org.darkforest.dao.redis.templete.AbstractListRedisOper;
import org.darkforest.model.AlbumClass;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by valentina on 15/3/19.
 */
@Component
public class AlbumClassRedisDaoImpl extends AbstractListRedisOper<AlbumClass> implements AlbumClassRedisDao {

    @Override
    public void addAlbumClassList(String key, List<AlbumClass> clsList) {
        this.addList(key,clsList);
    }

    @Override
    public List<AlbumClass> getAlbumClassList(String key) {
        return this.getList(key);
    }

}
